﻿<UserControl x:Class="GameFrameLibrary.Frames.LogFrame"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:input="clr-namespace:Prism.Games.GalEngine.Scripts.Parser.Input;assembly=InputModel"
             mc:Ignorable="d" 
             d:DesignHeight="576" d:DesignWidth="1024">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="SharedStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <UserControl.InputBindings>
        <MouseBinding MouseAction="RightClick" Command="input:GameCommands.Back" />
    </UserControl.InputBindings>
    <Grid Name="GameLayout">
        <Grid Name="LogLayout">
            <Grid >
                <Grid.Background>
                    <SolidColorBrush Color="Black" Opacity="0.65" />
                </Grid.Background>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition />
                    <RowDefinition Height="Auto" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="0" Background="{StaticResource CommonBackgroundBrush}">
                    <TextBlock Text="    Log    " FontSize="30" Margin="10" HorizontalAlignment="Left" />
                </Grid>
                <ListBox Name="LogListBox" Grid.Row="1" ItemContainerStyle="{StaticResource LogListBoxItem}">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition />
                                </Grid.ColumnDefinitions>
                                <TextBlock Grid.Column="0" Text="{Binding Role.Name}" Margin="10" FontSize="22" Style="{StaticResource TextBlockStyle}" />
                                <TextBlock Grid.Column="1" Text="{Binding Dialogue.Text}" Margin="10" FontSize="22" Style="{StaticResource TextBlockStyle}" />
                            </Grid>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                <Grid Grid.Row="2">
                    <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" >
                        <Button Margin="5" Width="150" Command="input:GameCommands.Title" MouseEnter="Button_MouseEnter" >
                            <Button.Content>
                                <TextBlock Text="    Title    " />
                                <!--<Image Source="Images/SLTitle.png" />-->
                            </Button.Content>
                        </Button>
                        <Button Margin="5" Width="150" Command="input:GameCommands.Back" MouseEnter="Button_MouseEnter" >
                            <Button.Content>
                                <TextBlock Text="    Back    " />
                                <!--<Image Source="Images/SLBack.png" />-->
                            </Button.Content>
                        </Button>
                    </StackPanel>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>

